<%@page contentType="text/html; charset=euc-kr"%>
<%@page import="org.springframework.web.bind.RequestUtils" %>
<%@page import="com.iheart.common.IWEBUtil" %>
<%@page import="com.iheart.common.PropertiesManager" %>
<%@ include file="../include/permissionCheck.jsp" %>
<%
	String filePath = PropertiesManager.getProperties("TEMPLETE");
	
	String filename = "";
	
	if(request.getParameter("no").equals("1")){
		filename = "barCodeExcel(xls).xls";
	} else if(request.getParameter("no").equals("2")){
		filename = "barCodeExcel(xlsx).xlsx";
	} else if(request.getParameter("no").equals("3")){
		filename = "SMSSendExcel(xls).xls";
	} else if(request.getParameter("no").equals("4")){
		filename = "SMSSendExcel(xlsx).xlsx";
	} else if(request.getParameter("no").equals("5")){
		filename = "SMSSendExcel(csv).csv";
	} else if(request.getParameter("no").equals("6")){
		filename = "SMSSendExcel(txt).txt";		
	} else if(request.getParameter("no").equals("7")){
		filename = "addressExcel(xls).xls";
	} else if(request.getParameter("no").equals("8")){
		filename = "addressExcel(xlsx).xlsx";
	} else if(request.getParameter("no").equals("9")){
		filename = "addressExcel(csv).csv";		
	}

	response.sendRedirect(request.getContextPath()+"/download.do?fName="+filePath+filename);

%>
